package com.jzbooks.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author mingPeng
 * @date 2021/4/27 15:37
 * @Description : 评论表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("comment")
@ApiModel("评论表")
public class Comment extends BaseEntity{

    @ApiModelProperty(value = "评论内容")
    @TableField(value = "content")
    private String content;

    @ApiModelProperty(value = "评论书籍id")
    @TableField(value = "book_id")
    private Integer bookId;

    @ApiModelProperty(value = "评论用户id")
    @TableField(value = "user_id")
    private Integer userId;

    @ApiModelProperty(value = "评论时间")
    @TableField(value = "comment_time")
    private Date commentTime;

    public static final String COL_CONTENT = "content";

    public static final String COL_BOOK_ID = "book_id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_COMMENT_TIME = "comment_time";

}
